package com.ntschy.common.core.entity.dataobject;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ntschy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ezreal_geng
 */
@TableName("SYS_DICT_DATA")
@Data
@NoArgsConstructor  //无参构造函数
@ApiModel(description = "字典数据")
public class SysDictData extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字典数据主键")
    @TableId(value = "DictCode")
    private String dictCode;

    @ApiModelProperty(value = "字典数据排序")
    @TableField(value = "DictSort")
    private Integer dictSort;

    @ApiModelProperty(value = "字典数据label")
    @TableField(value = "DictLabel")
    private String dictLabel;

    @ApiModelProperty(value = "字典数据值")
    @TableField(value = "DictCode")
    private String dictValue;

    @ApiModelProperty(value = "字典类型")
    @TableField(value = "DictType")
    private String dictType;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CreateUserID", fill = FieldFill.INSERT)
    private String createUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CreateTime", fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UpdateTime", fill = FieldFill.UPDATE)
    private String updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "UpdateUserID", fill = FieldFill.UPDATE)
    private String updateUserId;

    @ApiModelProperty(value = "备注")
    @TableField(value = "Remark")
    private String remark;
}
